home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM BV3 / BMUG PD-ROM Version BV3 (CDRM1097900).iso / HyperCard / Education / Weights & Measures / card_4511.txt < prev    next >
Text File  |  1991-10-27  |  15KB  |  689 lines

  1. -- card: 4511 from stack: in
  2. -- bmap block id: 4706
  3. -- flags: 4000
  4. -- background id: 2785
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on calculate
  8.   global x
  9.   set lockscreen to true
  10.   put 0.3048*.3048*.3048 into c
  11.   put x*1000 into card field 1
  12.   put x into card field 2
  13.   put x*1000000 into card field 3
  14.   put x*1000000000 into card field 4
  15.   put (x / c) /27 into card field 5
  16.   put (x / c) into card field 6
  17.   put (x / c) * 1728 into card field 7
  18.   put (x / c) * (1728/231) into card field 8
  19.   put (x / c) * (1728/277.418) into card field 9
  20.   put (x / c) * 4*(1728/231) into card field 10
  21.   put (x / c) * 4*(1728/277.418) into card field 11
  22.   put (x / c) * 8*(1728/231) into card field 12
  23.   put (x / c) * 8*(1728/277.418) into card field 13
  24.   put (x / c) *128* (1728/231) into card field 14
  25.   put (x / c) * 160*(1728/277.418) into card field 15
  26.   put x/0.1192371264 into card field 16
  27.   set lockscreen to false
  28. end calculate
  29.  
  30.  
  31. -- part 26 (button)
  32. -- low flags: 00
  33. -- high flags: A002
  34. -- rect: left=8 top=86 right=108 bottom=116
  35. -- title width / last selected line: 0
  36. -- icon id / first selected line: 0 / 0
  37. -- text alignment: 1
  38. -- font id: 0
  39. -- text size: 12
  40. -- style flags: 0
  41. -- line height: 16
  42. -- part name: Liters
  43. ----- HyperTalk script -----
  44. on mouseUp
  45.   global x
  46.   ask "Enter Value"
  47.   put it/1000 into x
  48.   calculate
  49. end mouseUp
  50.  
  51.  
  52.  
  53. -- part 2 (button)
  54. -- low flags: 00
  55. -- high flags: A002
  56. -- rect: left=8 top=150 right=172 bottom=117
  57. -- title width / last selected line: 0
  58. -- icon id / first selected line: 0 / 0
  59. -- text alignment: 1
  60. -- font id: 0
  61. -- text size: 12
  62. -- style flags: 0
  63. -- line height: 16
  64. -- part name: CU Meters
  65. ----- HyperTalk script -----
  66. on mouseUp
  67.   global x
  68.   ask "Enter Value"
  69.   put it into x
  70.   calculate
  71. end mouseUp
  72.  
  73.  
  74.  
  75. -- part 5 (button)
  76. -- low flags: 00
  77. -- high flags: A002
  78. -- rect: left=8 top=217 right=239 bottom=116
  79. -- title width / last selected line: 0
  80. -- icon id / first selected line: 0 / 0
  81. -- text alignment: 1
  82. -- font id: 0
  83. -- text size: 12
  84. -- style flags: 0
  85. -- line height: 16
  86. -- part name: CU Centimeters
  87. ----- HyperTalk script -----
  88. on mouseUp
  89.   global x
  90.   ask "Enter Value"
  91.   put it/1000000 into x
  92.   calculate
  93. end mouseUp
  94.  
  95.  
  96.  
  97. -- part 6 (button)
  98. -- low flags: 00
  99. -- high flags: A002
  100. -- rect: left=8 top=284 right=306 bottom=116
  101. -- title width / last selected line: 0
  102. -- icon id / first selected line: 0 / 0
  103. -- text alignment: 1
  104. -- font id: 0
  105. -- text size: 12
  106. -- style flags: 0
  107. -- line height: 16
  108. -- part name: CU Millimeters
  109. ----- HyperTalk script -----
  110. on mouseUp
  111.   global x
  112.   ask "Enter Value"
  113.   put it/ 1000000000 into x
  114.   calculate
  115. end mouseUp
  116.  
  117.  
  118.  
  119. -- part 27 (field)
  120. -- low flags: 01
  121. -- high flags: 0002
  122. -- rect: left=8 top=107 right=126 bottom=116
  123. -- title width / last selected line: 0
  124. -- icon id / first selected line: 0 / 0
  125. -- text alignment: 1
  126. -- font id: 0
  127. -- text size: 12
  128. -- style flags: 0
  129. -- line height: 16
  130. -- part name: 
  131.  
  132.  
  133. -- part 4 (field)
  134. -- low flags: 01
  135. -- high flags: 0002
  136. -- rect: left=8 top=171 right=190 bottom=117
  137. -- title width / last selected line: 0
  138. -- icon id / first selected line: 0 / 0
  139. -- text alignment: 1
  140. -- font id: 0
  141. -- text size: 12
  142. -- style flags: 0
  143. -- line height: 16
  144. -- part name: 
  145.  
  146.  
  147. -- part 7 (field)
  148. -- low flags: 01
  149. -- high flags: 0002
  150. -- rect: left=8 top=238 right=257 bottom=116
  151. -- title width / last selected line: 0
  152. -- icon id / first selected line: 0 / 0
  153. -- text alignment: 1
  154. -- font id: 0
  155. -- text size: 12
  156. -- style flags: 0
  157. -- line height: 16
  158. -- part name: 
  159.  
  160.  
  161. -- part 8 (field)
  162. -- low flags: 01
  163. -- high flags: 0002
  164. -- rect: left=8 top=305 right=325 bottom=116
  165. -- title width / last selected line: 0
  166. -- icon id / first selected line: 0 / 0
  167. -- text alignment: 1
  168. -- font id: 0
  169. -- text size: 12
  170. -- style flags: 0
  171. -- line height: 16
  172. -- part name: 
  173.  
  174.  
  175. -- part 10 (field)
  176. -- low flags: 01
  177. -- high flags: 0002
  178. -- rect: left=130 top=106 right=125 bottom=238
  179. -- title width / last selected line: 0
  180. -- icon id / first selected line: 0 / 0
  181. -- text alignment: 1
  182. -- font id: 0
  183. -- text size: 12
  184. -- style flags: 0
  185. -- line height: 16
  186. -- part name: 
  187.  
  188.  
  189. -- part 11 (field)
  190. -- low flags: 01
  191. -- high flags: 0002
  192. -- rect: left=130 top=171 right=191 bottom=238
  193. -- title width / last selected line: 0
  194. -- icon id / first selected line: 0 / 0
  195. -- text alignment: 1
  196. -- font id: 0
  197. -- text size: 12
  198. -- style flags: 0
  199. -- line height: 16
  200. -- part name: 
  201.  
  202.  
  203. -- part 13 (field)
  204. -- low flags: 01
  205. -- high flags: 0002
  206. -- rect: left=128 top=238 right=257 bottom=235
  207. -- title width / last selected line: 0
  208. -- icon id / first selected line: 0 / 0
  209. -- text alignment: 1
  210. -- font id: 0
  211. -- text size: 12
  212. -- style flags: 0
  213. -- line height: 16
  214. -- part name: 
  215.  
  216.  
  217. -- part 16 (button)
  218. -- low flags: 00
  219. -- high flags: A002
  220. -- rect: left=130 top=86 right=107 bottom=238
  221. -- title width / last selected line: 0
  222. -- icon id / first selected line: 0 / 0
  223. -- text alignment: 1
  224. -- font id: 0
  225. -- text size: 12
  226. -- style flags: 0
  227. -- line height: 16
  228. -- part name: CU Yards
  229. ----- HyperTalk script -----
  230. on mouseUp
  231.   global x
  232.   ask "Enter Value"
  233.   put it *0.9144^3 into x
  234.   calculate
  235. end mouseUp
  236.  
  237.  
  238.  
  239. -- part 17 (button)
  240. -- low flags: 00
  241. -- high flags: A002
  242. -- rect: left=130 top=150 right=172 bottom=238
  243. -- title width / last selected line: 0
  244. -- icon id / first selected line: 0 / 0
  245. -- text alignment: 1
  246. -- font id: 0
  247. -- text size: 12
  248. -- style flags: 0
  249. -- line height: 16
  250. -- part name: CU Feet
  251. ----- HyperTalk script -----
  252. on mouseUp
  253.   global x
  254.   ask "Enter Value in DECIMAL"
  255.   put it *.3048^3 into x
  256.   calculate
  257. end mouseUp
  258.  
  259.  
  260.  
  261. -- part 18 (button)
  262. -- low flags: 00
  263. -- high flags: A002
  264. -- rect: left=128 top=218 right=240 bottom=235
  265. -- title width / last selected line: 0
  266. -- icon id / first selected line: 0 / 0
  267. -- text alignment: 1
  268. -- font id: 0
  269. -- text size: 12
  270. -- style flags: 0
  271. -- line height: 16
  272. -- part name: CU Inches
  273. ----- HyperTalk script -----
  274. on mouseUp
  275.   global x
  276.   ask "Enter Value in DECIMAL"
  277.   put it *.0254^3 into x
  278.   calculate
  279.  
  280. end mouseUp
  281.  
  282.  
  283.  
  284. -- part 28 (button)
  285. -- low flags: 00
  286. -- high flags: A002
  287. -- rect: left=277 top=85 right=108 bottom=385
  288. -- title width / last selected line: 0
  289. -- icon id / first selected line: 0 / 0
  290. -- text alignment: 1
  291. -- font id: 0
  292. -- text size: 12
  293. -- style flags: 0
  294. -- line height: 16
  295. -- part name: US Gallons
  296. ----- HyperTalk script -----
  297. on mouseUp
  298.   global x
  299.   ask "Enter Value"
  300.   put (it*231)*(.0254^3) into x
  301.   calculate
  302. end mouseUp
  303.  
  304.  
  305.  
  306. -- part 29 (button)
  307. -- low flags: 00
  308. -- high flags: A002
  309. -- rect: left=394 top=85 right=107 bottom=502
  310. -- title width / last selected line: 0
  311. -- icon id / first selected line: 0 / 0
  312. -- text alignment: 1
  313. -- font id: 0
  314. -- text size: 12
  315. -- style flags: 0
  316. -- line height: 16
  317. -- part name: Imp Gallons
  318. ----- HyperTalk script -----
  319. on mouseUp
  320.   global x
  321.   ask "Enter Value"
  322.   put (it*277.418)*(.0254^3) into x
  323.   calculate
  324. end mouseUp
  325.  
  326.  
  327.  
  328. -- part 30 (button)
  329. -- low flags: 00
  330. -- high flags: A002
  331. -- rect: left=280 top=151 right=173 bottom=388
  332. -- title width / last selected line: 0
  333. -- icon id / first selected line: 0 / 0
  334. -- text alignment: 1
  335. -- font id: 0
  336. -- text size: 12
  337. -- style flags: 0
  338. -- line height: 16
  339. -- part name: US Quarts
  340. ----- HyperTalk script -----
  341. on mouseUp
  342.   global x
  343.   ask "Enter Value"
  344.   put (it*231/4)*(.0254^3) into x
  345.   calculate
  346. end mouseUp
  347.  
  348.  
  349.  
  350. -- part 32 (field)
  351. -- low flags: 01
  352. -- high flags: 0002
  353. -- rect: left=277 top=107 right=126 bottom=385
  354. -- title width / last selected line: 0
  355. -- icon id / first selected line: 0 / 0
  356. -- text alignment: 1
  357. -- font id: 0
  358. -- text size: 12
  359. -- style flags: 0
  360. -- line height: 16
  361. -- part name: 
  362.  
  363.  
  364. -- part 31 (field)
  365. -- low flags: 01
  366. -- high flags: 0002
  367. -- rect: left=394 top=106 right=125 bottom=502
  368. -- title width / last selected line: 0
  369. -- icon id / first selected line: 0 / 0
  370. -- text alignment: 1
  371. -- font id: 0
  372. -- text size: 12
  373. -- style flags: 0
  374. -- line height: 16
  375. -- part name: 
  376.  
  377.  
  378. -- part 33 (field)
  379. -- low flags: 01
  380. -- high flags: 0002
  381. -- rect: left=280 top=172 right=191 bottom=388
  382. -- title width / last selected line: 0
  383. -- icon id / first selected line: 0 / 0
  384. -- text alignment: 1
  385. -- font id: 0
  386. -- text size: 12
  387. -- style flags: 0
  388. -- line height: 16
  389. -- part name: 
  390.  
  391.  
  392. -- part 34 (button)
  393. -- low flags: 00
  394. -- high flags: A002
  395. -- rect: left=396 top=150 right=172 bottom=504
  396. -- title width / last selected line: 0
  397. -- icon id / first selected line: 0 / 0
  398. -- text alignment: 1
  399. -- font id: 0
  400. -- text size: 12
  401. -- style flags: 0
  402. -- line height: 16
  403. -- part name: Imp Quarts
  404. ----- HyperTalk script -----
  405. on mouseUp
  406.   global x
  407.   ask "Enter Value"
  408.   put (it*277.418/4)*(.0254^3) into x
  409.   calculate
  410. end mouseUp
  411.  
  412.  
  413.  
  414. -- part 35 (field)
  415. -- low flags: 01
  416. -- high flags: 0002
  417. -- rect: left=396 top=171 right=190 bottom=504
  418. -- title width / last selected line: 0
  419. -- icon id / first selected line: 0 / 0
  420. -- text alignment: 1
  421. -- font id: 0
  422. -- text size: 12
  423. -- style flags: 0
  424. -- line height: 16
  425. -- part name: 
  426.  
  427.  
  428. -- part 36 (button)
  429. -- low flags: 00
  430. -- high flags: A002
  431. -- rect: left=280 top=216 right=239 bottom=388
  432. -- title width / last selected line: 0
  433. -- icon id / first selected line: 0 / 0
  434. -- text alignment: 1
  435. -- font id: 0
  436. -- text size: 12
  437. -- style flags: 0
  438. -- line height: 16
  439. -- part name: US Pints
  440. ----- HyperTalk script -----
  441. on mouseUp
  442.   global x
  443.   ask "Enter Value"
  444.   put (it*231/8)*(.0254^3) into x
  445.   calculate
  446. end mouseUp
  447.  
  448.  
  449.  
  450. -- part 37 (button)
  451. -- low flags: 00
  452. -- high flags: A002
  453. -- rect: left=396 top=216 right=239 bottom=504
  454. -- title width / last selected line: 0
  455. -- icon id / first selected line: 0 / 0
  456. -- text alignment: 1
  457. -- font id: 0
  458. -- text size: 12
  459. -- style flags: 0
  460. -- line height: 16
  461. -- part name: Imp Pints
  462. ----- HyperTalk script -----
  463. on mouseUp
  464.   global x
  465.   ask "Enter Value"
  466.   put (it*277.418/8)*(.0254^3) into x
  467.   calculate
  468. end mouseUp
  469.  
  470.  
  471.  
  472. -- part 38 (button)
  473. -- low flags: 00
  474. -- high flags: A002
  475. -- rect: left=279 top=284 right=307 bottom=387
  476. -- title width / last selected line: 0
  477. -- icon id / first selected line: 0 / 0
  478. -- text alignment: 1
  479. -- font id: 0
  480. -- text size: 12
  481. -- style flags: 0
  482. -- line height: 16
  483. -- part name: US Ounce
  484. ----- HyperTalk script -----
  485. on mouseUp
  486.   global x
  487.   ask "Enter Value"
  488.   put (it*231/128)*(.0254^3) into x
  489.   calculate
  490. end mouseUp
  491.  
  492.  
  493.  
  494. -- part 39 (button)
  495. -- low flags: 00
  496. -- high flags: A002
  497. -- rect: left=396 top=283 right=306 bottom=504
  498. -- title width / last selected line: 0
  499. -- icon id / first selected line: 0 / 0
  500. -- text alignment: 1
  501. -- font id: 0
  502. -- text size: 12
  503. -- style flags: 0
  504. -- line height: 16
  505. -- part name: Imp Ounce
  506. ----- HyperTalk script -----
  507. on mouseUp
  508.   global x
  509.   ask "Enter Value"
  510.   put (it*277.418/160)*(.0254^3) into x
  511.   calculate
  512. end mouseUp
  513.  
  514.  
  515.  
  516. -- part 40 (field)
  517. -- low flags: 01
  518. -- high flags: 0002
  519. -- rect: left=280 top=238 right=257 bottom=388
  520. -- title width / last selected line: 0
  521. -- icon id / first selected line: 0 / 0
  522. -- text alignment: 1
  523. -- font id: 0
  524. -- text size: 12
  525. -- style flags: 0
  526. -- line height: 16
  527. -- part name: 
  528.  
  529.  
  530. -- part 41 (field)
  531. -- low flags: 01
  532. -- high flags: 0002
  533. -- rect: left=396 top=238 right=257 bottom=504
  534. -- title width / last selected line: 0
  535. -- icon id / first selected line: 0 / 0
  536. -- text alignment: 1
  537. -- font id: 0
  538. -- text size: 12
  539. -- style flags: 0
  540. -- line height: 16
  541. -- part name: 
  542.  
  543.  
  544. -- part 42 (field)
  545. -- low flags: 01
  546. -- high flags: 0002
  547. -- rect: left=279 top=306 right=325 bottom=387
  548. -- title width / last selected line: 0
  549. -- icon id / first selected line: 0 / 0
  550. -- text alignment: 1
  551. -- font id: 0
  552. -- text size: 12
  553. -- style flags: 0
  554. -- line height: 16
  555. -- part name: 
  556.  
  557.  
  558. -- part 43 (field)
  559. -- low flags: 01
  560. -- high flags: 0002
  561. -- rect: left=396 top=305 right=324 bottom=504
  562. -- title width / last selected line: 0
  563. -- icon id / first selected line: 0 / 0
  564. -- text alignment: 1
  565. -- font id: 0
  566. -- text size: 12
  567. -- style flags: 0
  568. -- line height: 16
  569. -- part name: 
  570.  
  571.  
  572. -- part 44 (button)
  573. -- low flags: 00
  574. -- high flags: A002
  575. -- rect: left=131 top=284 right=306 bottom=239
  576. -- title width / last selected line: 0
  577. -- icon id / first selected line: 0 / 0
  578. -- text alignment: 1
  579. -- font id: 0
  580. -- text size: 12
  581. -- style flags: 0
  582. -- line height: 16
  583. -- part name: Barrel
  584. ----- HyperTalk script -----
  585. on mouseUp
  586.   global x
  587.   ask "Enter Value"
  588.   put it*0.1192371264 into x
  589.   calculate
  590. end mouseUp
  591.  
  592.  
  593.  
  594. -- part 45 (field)
  595. -- low flags: 01
  596. -- high flags: 0002
  597. -- rect: left=131 top=305 right=324 bottom=239
  598. -- title width / last selected line: 0
  599. -- icon id / first selected line: 0 / 0
  600. -- text alignment: 1
  601. -- font id: 0
  602. -- text size: 12
  603. -- style flags: 0
  604. -- line height: 16
  605. -- part name: 
  606.  
  607.  
  608. -- part contents for card part 4
  609. ----- text -----
  610. 0.000355
  611.  
  612. -- part contents for card part 7
  613. ----- text -----
  614. 354.882355
  615.  
  616. -- part contents for card part 8
  617. ----- text -----
  618. 354882.35475
  619.  
  620. -- part contents for card part 10
  621. ----- text -----
  622. 0.000464
  623.  
  624. -- part contents for card part 11
  625. ----- text -----
  626. 0.012533
  627.  
  628. -- part contents for card part 13
  629. ----- text -----
  630. 21.65625
  631.  
  632. -- part contents for card part 27
  633. ----- text -----
  634. 0.354882
  635.  
  636. -- part contents for card part 32
  637. ----- text -----
  638. 0.09375
  639.  
  640. -- part contents for card part 31
  641. ----- text -----
  642. 0.078064
  643.  
  644. -- part contents for card part 33
  645. ----- text -----
  646. 0.375
  647.  
  648. -- part contents for card part 35
  649. ----- text -----
  650. 0.312254
  651.  
  652. -- part contents for card part 40
  653. ----- text -----
  654. 0.75
  655.  
  656. -- part contents for card part 41
  657. ----- text -----
  658. 0.624509
  659.  
  660. -- part contents for card part 42
  661. ----- text -----
  662. 12
  663.  
  664. -- part contents for card part 43
  665. ----- text -----
  666. 12.490177
  667.  
  668. -- part contents for card part 45
  669. ----- text -----
  670. 0.002976
  671.  
  672. -- part contents for background part 5
  673. ----- text -----
  674. 1 --,liter,liters,litre,litres,lit,lt,l,
  675. 2 --,cubic meters,meters cube,cubic meter,meter cube,cu meters,meters cu,cu meter,meter cu,cubic met,met cube,cubic m,m cube,mc,cm,m3,
  676. 3 --,cubic centimeters,centimeters cube,cubic centimeter,centimeter cube,cu centimeters,centimeters cu,cu centimeter,centimeter cube,cubic cm,cm cube,cu cm,cm cu,ccm,cm3,cc,milliliters,milliliter,
  677. 4 --,cubic millimeters,millimeters cube,cubic millimeter,millimeter cube,cu millimeters,millimeters cu,cu millimeter,millimeter cu,cu mm,mm cu,mm3,cmm,mmc,cu mlm,mlm cu,
  678. 5 --,cubic yards,yards cube,cubic yard,yard cube,cu yards,yards cu,cu yard,yard cu,cubic yd,yd cube,cyd,yd3,
  679. 6 --,cubic feet,feet cube,cubic foot,foot cube,cu feet,feet cu,cu foot,foot cube,cf,ft3,f3,cuf,
  680. 7 --,cubic inches,inches cube,cubic inche,inche cube,cu inches,inches cu,cu inche,inche cu,cubic in,in cube,cu in,in cu,in3,i3,ci,ic,
  681. 8 --,gallon,gallons,us gallon,us gallons,gallons us,gallon us,gal us,us gal,gal,gls,gln,
  682. 9 --,imp gallon,imp gallons,gallons imp,gallon imp,gal imp,imp gal,imperial gallons,imperial gallon,gallons imperial,gallon imperial,imperial gal,gal imperial,
  683. 10 --,quart,quarts,us quarts,us quart,quart us,quarts us,qt,q,qts,qrts,qrt,
  684. 11 --,imperial quart,imperial quarts,imp quarts,imp quart,quart imp,quarts imp,imp qt,qt imp,imp qts,imp qrts,imp qrt,qrt im
  685. 12 --,pints,pint,us pints,us pint,pints us,pint us,pnts,pnt,
  686. 13 --,imperial pints,imperial pint,pints imperial,pint imperial,imp pints,imp pint,pints imp,pint imp,imp pt,pt imp,
  687. 14 --,fluid ounce,fluid ounces,fl ounce,fl ounces,fl us ounce,fl us ounces,fl ounce us,fl ounces us,fl oz,fluid us ounce,fluid us ounces,fluid ounce us,fluid ounces us,fluid oz,
  688. 15 --,imperial fluid ounce,imperial fluid ounces,fluid ounce imperial,fluid ounces imperial,imp fluid ounce,imp fluid ounces,fluid ounce imp,fluid ounces imp,imp fluid oz,fluid oz imp,imperial fl ounce,imperial fl ounces,fl ounce imperial,fl ounces imperial,imp fl ounce,imp fl ounces,fl ounce imp,fl ounces imp,imp fl oz,fl oz imp,
  689. 16 --,barrel,barrels,